import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from '../views/Home/Home';
import StartPage from '../views/StartPage/StartPage';
import SetPage from '../views/SetPage/SetPage';

Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    redirect: '/home',
  },
  {
    path: '/home',
    component: Home,
    children: [
      {
        path: '',
        name: 'StartPage',
        component: StartPage,
      },
      {
        path: 'set-page',
        name: 'SetPage',
        component: SetPage,
      },
    ],
  },
];

const router = new VueRouter({
  routes,
});

export default router;
